<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <input type="hidden" name="goods_id" class="data"  value="{$goods.id|htmlentities}">

    {volist name="list" id="row" }
    <div class="col-xs-12 col-md-12 border-primary view{$key}" data-key="{$key}" style="border: 2%; border-radius:5px;background-color: rgba(71, 67, 75, 0.173); padding: 20px 10px 10px 20px; margin: 10px;" >
        
        <div class="del_he pull-right btn btn-danger" data-key="{$key}">
            删除该户型
        </div>

        <input class="form-control" name="row[{$key}][id]" id="id{$key}"  type="hidden" value="{$row.id|htmlentities}">
        
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-image{$key}" class="form-control" size="50" name="row[{$key}][image]" type="text" value="{$row.image|htmlentities}">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-image{$key}" class="btn btn-danger faupload" data-input-id="c-image{$key}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image{$key}"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-image{$key}" class="btn btn-primary fachoose" data-input-id="c-image{$key}" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-image{$key}"></span>
                </div>
                <ul class="row list-inline faupload-preview" id="p-image{$key}"></ul>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-type" class="form-control" name="row[{$key}][type]" type="text" value="{$row.type|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Size')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-size" class="form-control" name="row[{$key}][size]" type="text" value="{$row.size|htmlentities}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-price" class="form-control" name="row[{$key}][price]" type="text" value="{$row.price|htmlentities}">
            </div>
        </div>
    </div>
    {/volist}
    <div class="add_he pull-right btn btn-info">
        添加户型
    </div>
    <input type="hidden" name="" id="school_str">
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
